package com.ght.springboot.service.impl;

import com.ght.springboot.dao.FindMeMapper;
import com.ght.springboot.service.FindMeService;
import org.omg.SendingContext.RunTime;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @description:
 * @author: haitao.gao
 * @create: 2018-12-10 16:57
 **/
@Service
public class FineMeServiceImpl implements FindMeService {


    @Autowired
    private FindMeMapper findMeMapper;

    @Autowired
    private FindMeService findMeService;
    @Override
    public String fineMe(String name) {
//        findMeMapper.insert(name);
//        throw new RuntimeException("111");
        findMeService.insert(name);
        return "OK";
    }

    @Override
    @Transactional
    public void insert(String name) {

        findMeMapper.insert(name);
    }


}
